package com.xbongbong.schedule.domain.dao;

import com.xbongbong.schedule.domain.entity.ScheduleTaskRelateBusinessEntity;
import com.xbongbong.schedule.domain.entity.ScheduleTaskRelateBusinessEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface ScheduleTaskRelativeBusinessDao {

    Integer insert(ScheduleTaskRelateBusinessEntity entity);

    Integer insertBatch(List<ScheduleTaskRelateBusinessEntity> list);

    Integer update(ScheduleTaskRelateBusinessEntity entity);

    Integer updateBatch(@Param("list") List<ScheduleTaskRelateBusinessEntity> updateList, @Param("corpid") String corpid);

    ScheduleTaskRelateBusinessEntity getByKey(@Param("key") Long id, @Param("corpid") String corpid);

    Integer deleteByKey(@Param("key") Long id, @Param("corpid") String corpid);

    List<ScheduleTaskRelateBusinessEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(Map<String, Object> param);

    void deleteByIdIn(@Param("corpid") String corpid, @Param("idIn") List<Long> idIn);

}
